package com.mybook.service.impl;

import com.mybook.entity.Book;
import com.mybook.mapper.BookMapper;
import com.mybook.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookServiceImpl implements BookService {

    @Autowired
    private BookMapper bookMapper;

    @Override
    public List<Book> getBooksByCid(Integer cid) {
        return bookMapper.selectBooksByCid(cid);
    }
}
